#ifndef __MYCAN_H
#define __MYCAN_H

#include "stm32f1xx_hal.h"
#include <stdio.h>
#include "can.h"

#include "FreeRTOS.h"
#include "task.h"

#include "OLED.h"

HAL_StatusTypeDef CAN_SetFilters(void);

void MyCAN_Transmit(uint32_t ID, uint8_t DataLength, uint8_t *Data);
uint8_t MyCAN_ReceiveFlag(void);
void MyCAN_Receive(uint32_t *ID, uint8_t *Length);

// void CAN_TestPoll(uint8_t msgID, uint8_t frameType);
void CAN_Func(void *argument);

#endif
